﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAccess.ObjectTwo
{
  public  class D_CheckKey
    {
      ConnectionToDataBase ex = new ConnectionToDataBase();
      public DataTable CheckCom(int val)
      {
          SqlParameter[] sqlParameters = new SqlParameter[1];
          sqlParameters[0] = new SqlParameter("@v_CCode", SqlDbType.Int);
          sqlParameters[0].Value = val;
          return ex.executeSelectQuery("CheckCompany", sqlParameters);
      }
    }
}
